<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core">


	<h:form>

		<p:outputPanel id="menuPanel" layout="block">
			<p:menu autoSubmenuDisplay="true"
				style="width:213px;height:483px;border:none;font-size:small;padding:0px;"
				ajax="false" type="sliding" backLabel="#{msg['menu.back']}">
				
				<p:menuitem value="Timeline" action="timeline" icon="ui-icon ui-icon-comment" ajax="true"/>
				<p:menuitem value="Pessoas" action="visualizarPessoas" icon="ui-icon ui-icon-person" ajax="true"/>
				<p:menuitem value="Perfil" action="visualizarPerfil" icon="ui-icon ui-icon-contact" ajax="true">
					<f:setPropertyActionListener
							target="#{visualizarPessoasBean.nome}" value="#{usuarioBean.usuario.perfil.nome}" />
				</p:menuitem>
				<p:menuitem value="Seguir" action="seguirUsuario"  icon="ui-icon ui-icon-transferthick-e-w" ajax="true"/>
				<p:menuitem value="Sugestao de Pessoas" action="sugestaoPerfil" icon="ui-icon ui-icon-contact" ajax="true"/>
				<p:menuitem value="Sair" url="/j_spring_security_logout" icon="ui-icon ui-icon-power" ajax="true"/>
				
			</p:menu>
		</p:outputPanel>

	</h:form>
</ui:composition>


